package LeetCode;

// 转化成26进制
public class LC168 {
    public String convertToTitle(int n) {
        StringBuilder sb = new StringBuilder();
        while (n!=0){
            n--;
            sb.append((char)('A'+n%26));
            n/=26;
        }
        return sb.reverse().toString();
    }
}